// 学院管理
import { request } from '/@/utils/http/axios';

// 获取首页评阅详情列表
export const getCollegeList = (params) => {
  return request({
    url: '/basic/findVOListXy',
    method: 'GET',
    params,
  });
};

// 删除学院
export const deleteCollegeById = (params) => {
  return request({
    url: '/basic/deleteXy',
    method: 'POST',
    params,
  });
};

// 新建
export const saveOrUpdateCollege = (params) => {
  return request({
    url: '/basic/addXy',
    method: 'POST',
    params,
  });
};


// 学院管理员
export const saveDistributeXyAccount = (params) => {
  return request({
    url: '/basic/distributeXyAccount',
    method: 'POST',
    params,
  });
};

// 取消学院管理员
export const saveCancelXyXyAccount = (params) => {
  return request({
    url: '/basic/cancelXyManageAccount',
    method: 'POST',
    params,
  });
};


// 获取我的质检工作统计
export const allotAdministrationTeacher = (params) => {
  return request({
    url: '/pyLsXx/workCount',
    method: 'GET',
    params,
  });
};



// 获取已评阅试题列表和我的质检试题列表
export const getlistFishPaperList = (params) => {
  params.activeKey == '0' ? '' : params.kmdmList = "";
  return request({
    url: params.activeKey == '0' ? `/pyLsXx/listFishPaper?pageSize=${params.pageSize}&pageNum=${params.pageNum}` : `/pyLsXx/myQualityPaperList?pageSize=${params.pageSize}&pageNum=${params.pageNum}`,
    method: params.activeKey == '0' ? 'POST' : 'GET',
    params,
  });
};






// 获取管理员账号
export const getXyAccountArr = params => {
  return request({
    url: '/sysAuthAbout/getXyAccountList',
    method: "get",
    params
  });
}


// 获取学院科目评阅进度列表
export const getXyKmPyJdArr = params => {
  return request({
    url: '/summary/summaryXyKmPyJdByXydmBatch',
    method: "POST",
    params
  });
}
